


namespace Stee.CAP8.MessageBus.Sample.Model
{
    using System;

    [Serializable]
    public class Person
    {
        public string Name { get; set; }

        public int Age { get; set; }


        /// <summary>
        /// Initializes a new instance of the Person class
        /// </summary>
        /// <param name="name"></param>
        /// <param name="age"></param>
        public Person(string name, int age)
        {
            this.Name = name;
            this.Age = age;
        }


        public override string ToString()
        {
            return $"Person => {this.Name}, {this.Age}";
        }
    }
}
